import request from '@/utils/request'

// 标签列表
export const queryLabelList = (params) => {
  return request('GET', '/app/bounty/label/list', params)
}

// 分类列表
export const queryCategoryList = (params) => {
  return request('GET', '/app/bounty/category/list', params)
}

// 发布悬赏
export const queryBountyReward = (data) => {
  return request('POST', '/app/bounty/reward', data)
}

// 编辑招聘(包括上下架)
export const queryRecruitment = (data) => {
  return request('PUT', '/app/bounty/reward', data)
}

// 悬赏列表
export const queryRewardList = (params) => {
  return request('GET', '/app/bounty/reward/list', params)
}

// 获取悬赏详细信息
export const queryRewardDetail = (id) => {
  return request('GET', `/app/bounty/reward/${id}`)
}

// 根据Ip获取要使用的币种
export const queryCountryCurrency = (params) => {
  return request('GET', '/app/currency/country/currency', params)
}

// 保证金
export const queryFeeBond = (params) => {
  return request('GET', '/app/bounty/reward/bond', params)
}

// 获取当前国家
export const queryCountryCity = (params) => {
  return request('GET', '/app/currency/country', params)
}
